﻿using System;

namespace dk.Helper.Base
{
    public interface IWorldFileDownloader
    {
        /// <summary>
        /// Downloads the file.
        /// </summary>
        /// <param name="filename">The filename.
        /// <example>village.txt</example>
        /// <example>player.txt</example>
        /// <example>ally.txt</example>
        /// </param>
        void DownloadFile(string filename);

        /// <summary>
        /// Occurs when download progress is changed.
        /// </summary>
        event ProgressEventHandler DownloadProgressChanged;

        /// <summary>
        /// Occurs when download is finished.
        /// </summary>
        event EventHandler DownloadFinished;
    }
}